<?php
namespace app\supermanager\controller;
use think\Controller;
use think\Loader;
use think\Request;
/**
 * 分公司旅行币管理
 */
class CapitalDetail extends Controller
{   
    use \app\common\traits\controller\TraitController;
    /**
     * [FunctionName 旅行币流水列表]
     * @param string $value [description]
     */
    public function getIntegralWater()
    {
	  //获取分公司
	  $filiales = model('Filiales')->column('name','id');
	  $list = Loader::model('CapitalDetails')->setPageSize(15)->getDetailsLists($this->request->get(['types' => 'integral']));
      return view('capital_detail/integral_water',['list'=>$list,'filiales'=>$filiales]);
    }

	/**
     * [FunctionName 现金流水列表]
     * @param string $value [description]
     */
    public function getBlanceWater()
    {
	  //获取分公司
	  $filiales = model('Filiales')->column('name','id');
	  $list = Loader::model('CapitalDetails')->setPageSize(15)->getDetailsLists($this->request->get(['types' => 'blance']));
      return view('capital_detail/blance_water',['list'=>$list,'filiales'=>$filiales]);
    }
}
